package pswvclass.pswvandroid2.com.risk;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import pswvclass.pswvandroid2.R;

/**
 * Created by Administrator on 2018/11/6.
 */
public class RiskResults extends Fragment {

    private String tag = "RiskResults";
    private String risk;
    private TextView risk_text;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.pswv_risk_results, null);
        return view;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Bundle bundle = getArguments();
        if (bundle != null) {
            risk = bundle.getString("risk");
        }
        risk_text = (TextView) getView().findViewById(R.id.risk_text);
        risk_text.setText(risk + "风险分析");
    }

}
